package com.lyj.springcloud;

import com.lyj.myselfrule.MyselfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.netflix.ribbon.RibbonClients;

/**
 * @RibbonClient(name = "CLOUD-PAYMENT-SERVICE" , configuration = MyselfRule.class)
 * 启动修改后的负载均衡策略 name-服务名
 */
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE" , configuration = MyselfRule.class)
@SpringBootApplication
@EnableEurekaClient
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }
}
